From: Daniel Pfeiffer Date: Fri, 18 Jun 2004 23:01:30 +0000 (+0000) Subject: (grep-regexp-alist): Match columns and column ranges, if present. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21921 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d3153e59183dd4b77c6338d4604f46fdb0364556;p=emacs.git (grep-regexp-alist): Match columns and column ranges, if present. --- diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index aa81f8aa770..aa9a50a2580 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -216,7 +216,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies `complation-last-buffer' rather than `grep-last-buffer'.") (defvar grep-regexp-alist - '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2) + '(("^\\(.+?\\)[:( \t]+\\([0-9]+\\)\\([:) \t]\\)\\(?:\\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?\\3\\)?" 1 2 (4 . 5)) ("^Binary file \\(.+\\) matches$" 1 nil nil 1)) "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")